<template>
  <div>

    <el-button-group>

      <el-button type="" text @click="goToLogin">
        {{ $t('home.Login') }}
      </el-button>
      <el-button type="" text @click="goToRegister">
        {{ $t('home.Register') }}
      </el-button>

    </el-button-group>

  </div>
</template>


<script setup>
import { useRouter } from "vue-router";
const router = useRouter();


/* -------------------- 路由相关方法 -------------------- */
// goToLogin 跳转登录页
const goToLogin = () => {
  router.push({
    name: "login",
  });
};

// goToRegister 跳转注册页
const goToRegister = () => {
  router.push({
    name: "register",
  });
};

</script>

<style lang="less" scoped></style>